using System;
using System.ComponentModel;
using System.Data;
using System.Runtime.Serialization;

namespace DataAccess
{
    /// <summary>
    /// A custom serializable dataset containing FIN_EPE_AUDITORIA information.
    /// </summary>
    [Serializable()]
    [DesignerCategory("code")]
    public class FinEpAuditoriaData : DataTable
    {
        ///
        /// Constants for table and fields mapping
        ///
        public const String FIN_EPE_AUDITORIA_TABLE = "FIN_EPE_AUDITORIA";
        public const String FEA_ID_FIELD = "FEA_ID";
        public const String FAE_ID_FIELD = "FAE_ID";
        public const String TPE_ID_FIELD = "TPE_ID";
        public const String USU_ID_FIELD = "USU_ID";
        public const String FEA_FECHA_FIELD = "FEA_FECHA";
        public const String FEA_OBSERVACIONES_FIELD = "FEA_OBSERVACIONES";
        public const String USU_CORREO_ELECTRONICO_FIELD = "USU_CORREO_ELECTRONICO";
        

        public FinEpAuditoriaData()
		{
			BuildDataTables();
		}

        protected FinEpAuditoriaData(SerializationInfo info, StreamingContext context)
		{
			//
		}

		/// <summary>
		/// 
		/// </summary>
		private void BuildDataTables()
		{
            Columns.Add(FEA_ID_FIELD, typeof(Decimal));
            Columns.Add(FAE_ID_FIELD, typeof(Decimal));
            Columns.Add(TPE_ID_FIELD, typeof(Decimal));
            Columns.Add(USU_ID_FIELD, typeof(Decimal));
            Columns.Add(FEA_FECHA_FIELD, typeof(DateTime));
            Columns.Add(FEA_OBSERVACIONES_FIELD, typeof(String));
            Columns.Add(USU_CORREO_ELECTRONICO_FIELD, typeof(String));
            
            TableName = FIN_EPE_AUDITORIA_TABLE;
		}

        /// <summary>
        /// 
        /// </summary>
        /// <param name="row"></param>
        public void Add(DataRow row)
        {
            Rows.Add(row);
        }

    }
}

